]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
NetworkMenu/NMConnectionDevice: fix status text
authorGiovanni Campagna <gcampagna@src.gnome.org>
Thu, 3 Oct 2013 12:26:21 +0000 (14:26 +0200)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Wed, 9 Oct 2013 16:39:44 +0000 (18:39 +0200)
Be consistent with v4 mockups

https://bugzilla.gnome.org/show_bug.cgi?id=709043

js/ui/status/network.js

index 78e44f3954b8f21f58ca4ba703dcc62c97ed5cd5..c81e94c016022335e6e3d5a3b7861e0ec57c5cd4 100644 (file)
@@ -367,8 +367,9 @@ const NMConnectionDevice = new Lang.Class({
 
         switch(this._device.state) {
         case NetworkManager.DeviceState.DISCONNECTED:
+            return _("Off");
         case NetworkManager.DeviceState.ACTIVATED:
-            return '';
+            return this.parent();
         case NetworkManager.DeviceState.UNMANAGED:
             /* Translators: this is for network devices that are physically present but are not
                under NetworkManager's control (and thus cannot be used in the menu) */